package com.example.mycityapp.tests;

import java.io.ObjectOutputStream.PutField;

import junit.framework.Assert;

import com.example.mycityapp.MainActivity;
import com.example.mycityapp.R;

import android.content.Intent;
import android.test.ActivityInstrumentationTestCase2;
import android.widget.Button;
import android.widget.TextView;

public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> {

	private MainActivity mainActivity;
	private TextView email;
	private TextView password;
	private Button login;
	
	public MainActivityTest() {
		super(MainActivity.class);
		// TODO Auto-generated constructor stub
	}
	
	@Override
    protected void setUp() throws Exception {
        super.setUp();
        mainActivity = getActivity();
        email = (TextView) mainActivity.findViewById(R.id.userNameEditText);
        Assert.assertNotNull("email field", email);
    }
	
	

}
